package com.bw.mallshop.mvvm.view;

import android.os.Bundle;

import androidx.annotation.Nullable;

import com.blankj.utilcode.util.LogUtils;
import com.bw.common.mvvm.view.BaseActivity;
import com.bw.mallshop.BR;
import com.bw.mallshop.R;
import com.bw.mallshop.databinding.ActivityHomevalueBinding;
import com.bw.mallshop.mvvm.viewmodel.GoodsValuesViewModel;

public class HomeDetailActivity extends BaseActivity<ActivityHomevalueBinding, GoodsValuesViewModel> {

    @Override
    protected int createvariableId() {
        return BR.vm;
    }

    @Override
    public int bindlayout() {
        return R.layout.activity_homevalue;
    }

    int goodsId = 0;

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        goodsId = getIntent().getExtras().getInt("goodsId");
        vm.setGoodsId(goodsId);
    }
}
